/*
手机卡类
* */
public class sdCard{
//    声明成员变量： 卡类型、卡号、用户名、密码、账户余额、通话时长(分钟)、上网流量
    sdCardEnum type = sdCardEnum.Big;//设置手机卡卡类型初始化是大卡
    int sdNum = 0;
    String user_name = "";
    String password = "";
    double balance = 0.00;
    cnSuit cnsuit = new cnSuit();//包含通话时长
    onlineSuit onlinesuit = new onlineSuit();//包含上网流量
    double callDuration = cnsuit.getCallDuration();
    double data = onlinesuit.getOnlineData();

    public sdCard(sdCardEnum type, int sdNum, String user_name, String password, double balance, cnSuit cnsuit, onlineSuit onlinesuit) {
        this.type = type;
        this.sdNum = sdNum;
        this.user_name = user_name;
        this.password = password;
        this.balance = balance;
        this.cnsuit = cnsuit;
        this.onlinesuit = onlinesuit;
    }

    public sdCardEnum getType() {
        return type;
    }

    public void setType(sdCardEnum type) {
        this.type = type;
    }

    public int getSdNum() {
        return sdNum;
    }

    public void setSdNum(int sdNum) {
        this.sdNum = sdNum;
    }

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }

    public cnSuit getCnsuit() {
        return cnsuit;
    }

    public void setCnsuit(cnSuit cnsuit) {
        this.cnsuit = cnsuit;
    }

    public onlineSuit getOnlinesuit() {
        return onlinesuit;
    }

    public void setOnlinesuit(onlineSuit onlinesuit) {
        this.onlinesuit = onlinesuit;
    }

    //行为：显示（卡号 + 用户名 + 当前余额）
    public void show(){
        System.out.println("该卡的卡号为：" + sdNum + " ， 用户名为： "+ user_name + " ， 当前余额是： " + balance);
    }

}
